<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>动画</title>
		<script src="../js/jquery-3.6.3.min.js"></script>
		<script>
			$(function(){
				$("#btn1").click(function(){
					if($("#adv img").is(":visible"))
					$("#adv img").fadeOut(2000);
						//$("#adv img").slideUp(2000);
					else
					    $("#adv img").fadeIn(2000);
						//$("#adv img").slideDown(2000);
				});
			});
		</script>
	</head>
	<body>
		<div id="adv">
			<img  src="../images/jixue.jpg"/>
		</div>
		<div>
			<button type="button" id="btn1">消失</button>
		</div>
	</body>
</html>